﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MissileArriveInfo.aspx.cs" Inherits="DuJianliang.ApplicationPlatform.MissileArrive.MissileArriveInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script defer="defer" src="../Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body style="font-size:12px">
    <form id="form1" runat="server">
    <div style="width:100%; padding:5px;">
        导弹型号：<asp:TextBox ID="txtItemCode" runat="server"></asp:TextBox>
        弹号：<asp:TextBox ID="txtDistNumber" runat="server"></asp:TextBox>
        入场时间：从<asp:TextBox ID="txtInDateFrom" runat="server" onClick="WdatePicker()"></asp:TextBox>
        至<asp:TextBox ID="txtInDateTo" runat="server" onClick="WdatePicker()"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" Text="查询" onclick="btnSearch_Click" />
    </div>
    <div style="width:100%">
        <asp:GridView ID="gridView" runat="server" AutoGenerateColumns="False" 
                CellPadding="4" Font-Size="9pt" ForeColor="#333333" GridLines="Both"
                Width="100%"  DataKeyNames="ItemCode,SysNumber,InDate,U_LifeTime" onrowcommand="gridView_RowCommand" 
            AllowPaging="True" PageSize="20" 
            onpageindexchanging="gridView_PageIndexChanging" 
            onrowdatabound="gridView_RowDataBound" >                                   
                <Columns>
                    <asp:BoundField HeaderText="导弹型号" DataField="ItemCode"  />
                    <asp:BoundField HeaderText="型号描述" DataField="ItemName"  />
                    <asp:BoundField HeaderText="弹号" DataField="DistNumber"  />
                    <asp:BoundField HeaderText="入厂时间" DataField="InDate"  />
                    <asp:BoundField HeaderText="原出厂时间" DataField="u_yccsj"  />
                    <asp:BoundField HeaderText="通电时间" DataField="u_tdsj" />
                    <asp:BoundField HeaderText="挂飞时间" DataField="u_gfsj" />
                    <asp:BoundField HeaderText="挂飞架次" DataField="u_FlightTime" />
                    <asp:BoundField HeaderText="贮存环境" DataField="u_cchj" />
                    <asp:BoundField HeaderText="油封时间" DataField="u_yfsj" />
                    <asp:BoundField HeaderText="启封时间" DataField="u_qfsj" />
                    <asp:BoundField HeaderText="剩余寿命" DataField="U_LifeTime" />
                    <asp:BoundField HeaderText="计算剩余寿命"/>
                    <asp:BoundField HeaderText="修理等级" DataField="u_level" />                    
                    <asp:TemplateField HeaderText="操作" ItemStyle-Width="100px">
                        <ItemTemplate>
                            <asp:Button ID="btnEdit" runat="server" Text="编辑" Height="20px" CommandName="CmdEdit"></asp:Button>                            
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle BackColor="#DFE8F6" Font-Bold="True" ForeColor="#333333" Height="20px" />    
                <RowStyle BackColor="#FAFAFA" ForeColor="#333333" HorizontalAlign="Center"/>
                <EmptyDataTemplate>
                    <div style="text-align:center; margin-top:20px; margin-bottom:20px;">当前没有任何数据</div>        
                </EmptyDataTemplate>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
